:root {
  /* MIXEC COLORS  */
  --midnight-purple: linear-gradient(135deg, #041642, #191716);
  --obsidian-purple: linear-gradient(135deg, #1e1b29, #4b0082);
  --amethyst-shine: linear-gradient(135deg, #4b0082, #8a2be2);

  /* Sidebar */
  --sidebar-background: #f8f8f8;
  --sidebar-button: linear-gradient(135deg, #430172, #cba3f0);

  /* Text */
  --text-color: #111111;
  --text-secondary: #555555;
  --heading-color: #4b0082;

  /* Backgrounds */
  --outer-background: linear-gradient(135deg, #430172, #cba3f0);
  --inner-background: #ffffff;

  /* Accent / Buttons */
  --button-text: #ffffff;
  --accent-gradient-start: #4b0082;
  --accent-gradient-end: #8a2be2;

  /* Shadows */
  --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--outer-background);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInBody 1s ease forwards;
  opacity: 0;
  overflow: hidden;
}

body,
p,
li,
a {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

h1 {
  font-weight: 700;
  font-size: 3rem;
}

h2 {
  font-weight: 600;
  font-size: 2rem;
}

.button,
.highlight {
  font-family: "Pacifico", cursive;
  font-size: 1.2rem;
  color: #fff;
}

.small-text {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.outer-wrapper {
  background: var(--inner-background);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 1000px;
  height: 80vh;
  display: flex;
  overflow: hidden;
  animation: floatEffect 6s ease-in-out infinite;
}

.container {
  display: flex;
  width: 100%;
  height: 100%;
}

.sidebar {
  width: 200px;
  background: var(--sidebar-background);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  border-right: 2px solid #9c4747;
  z-index: 2;
}

.sidebar h2 {
  margin-bottom: 20px;
  color: var(--heading-color);
}

.sidebar ul {
  list-style: none;
  width: 100%;
}

.sidebar li {
  padding: 15px 20px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
}

.sidebar li:hover,
.sidebar li.active {
  background: var(--sidebar-button);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(138, 43, 226, 0.4);
}

/* CONTENT */

.content {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  z-index: 1;
}

.section {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: 100%;
  height: 100%;
  background: var(--inner-background);
  color: var(--text-color);
  position: absolute;
  top: 0;
  left: 0;
  padding: 50px 60px;
  overflow-y: auto;
  scrollbar-gutter: stable both-edges;
}

.section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ABOUT  */

#about {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  min-height: 100vh;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
}

.name {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 50px;
  color: var(--heading-color);
}

.title {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 20px;
  color: var(--text-color);
}

.subtitle {
  font-size: 1rem;
  letter-spacing: 1px;
  margin-top: 12px;
  color: var(--text-secondary);
  max-width: 600px;
}

.section:not(#about) h1 {
  font-size: 28px;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.section:not(#about) h2 {
  font-size: 20px;
  color: var(--heading-color);
  margin-top: 20px;
}

.section::-webkit-scrollbar {
  width: 6px;
}

.section::-webkit-scrollbar-thumb {
  background: #4b0082;
  border-radius: 10px;
}

/* Animations */
@keyframes floatEffect {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInBody {
  to {
    opacity: 1;
  }
}

@media (max-width: 992px) {
  #about {
    padding: 60px 30px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .name {
    font-size: 2.5rem;
    margin-bottom: 35px;
  }

  .title {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  .subtitle {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  #about {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 80px 20px;
    margin: 0 auto;
  }

  .name {
    font-size: 2rem;
    margin-bottom: 25px;
  }

  .title {
    font-size: 1.8rem;
    margin-top: 10px;
  }

  .subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 auto;
  }
}

/* STORY  */

#story {
  background-color: var(--inner-background);
  color: var(--text-color);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 0 60px;
}

.story-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
}

.story-left img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  filter: grayscale(100%);
  border-radius: 6px;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.story-left img:hover {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.story-right {
  flex: 1;
  max-width: 600px;
}

.story-right h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  background: linear-gradient(135deg, #4b0082, #8a2be2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  position: relative;
  margin-bottom: 30px;
}

.story-right h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--outer-background);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.story-right p {
  line-height: 1.7;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.resume-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: transparent;
  border: 1.5px solid var(--accent-gradient-start);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.resume-btn:hover {
  background-color: var(--accent-gradient-end);
  color: var(--inner-background);
  transform: translateY(-3px);
}

.big-heading {
  position: absolute;
  bottom: 30px;
  left: 120px;
  font-size: 5rem;
  font-weight: 1000;
  letter-spacing: 4px;
  color: rgba(204, 195, 195, 0.911);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 992px) {
  .story-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .story-left img {
    width: 250px;
    height: 250px;
    margin-top: 30px;
  }

  .story-right {
    max-width: 100%;
  }

  .story-right h2 {
    font-size: 1.8rem;
  }

  .big-heading {
    display: none;
  }
}

/* Small Screens */
@media (max-width: 600px) {
  #story {
    overflow-y: auto;
    overflow-x: hidden;
    align-items: flex-start;
    padding: 100px 20px 40px 20px;
    justify-content: flex-start;
    height: 100%;
    position: relative;
  }

  .story-wrapper {
    flex-direction: column;
    gap: 20px;
    padding-top: 0;
    width: 100%;
  }

  .story-left img {
    width: 250px;
    height: 200px;
    margin-top: 0;
    margin-bottom: 0;
    align-self: center;
  }

  .story-right {
    width: 100%;
    max-width: 100%;
  }

  .story-right h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 5px;
  }

  .story-right p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .resume-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 20px;
    display: inline-block;
  }

  .big-heading {
    display: none;
  }
}

/* SKILLS */

.skills {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

#skills h1 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  background: linear-gradient(135deg, #4b0082, #8a2be2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  position: relative;
  margin-bottom: 30px;
}

#skills h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #4b0082, #8a2be2);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
  perspective: 1000px;
  margin-top: 40px;
}

/* FLIP CARD STYLE */
.flip-card {
  background: transparent;
  width: 100%;
  height: 200px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 20px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  background: var(--outer-purple);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: all 0.4s ease;
}

.flip-card:hover .flip-card-front {
  box-shadow: 0 0 35px var(--outer-purple);
}

.flip-card-front h2 {
  font-size: 1.5rem;
  font-weight: 600;
  background: var(--outer-background);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.flip-card-back {
  background: var(--outer-background);
  color: #fff;
  transform: rotateY(180deg);
  padding: 20px;
}

.flip-card-back p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--button-text);
}

/* Tablet Screens */
@media (max-width: 992px) {
  #skills h1 {
    margin-top: 60px;
  }

  .skills-grid {
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .flip-card {
    height: 180px;
  }

  .flip-card-front h2 {
    font-size: 1.3rem;
  }

  .flip-card-back p {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .skills {
    padding: 0 20px;
  }
  #skills h1 {
    margin-top: 120px;
    font-size: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flip-card {
    height: 160px;
  }

  .flip-card-front h2 {
    font-size: 1.5rem;
  }

  .flip-card-back p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* PROJECTS  */

#projects h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  background: var(--outer-background);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  position: relative;
  margin-bottom: 30px;
}

#projects h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--outer-background);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.projects-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.project-card {
  width: 300px;
  background: var(--button-text);
  border-radius: 15px;
  border: 1px solid #ddd;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px var(--accent-gradient-end),
    10px 10px 30px rgba(80, 72, 72, 0.7);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: border 0.3s ease;
}

.project-card:hover img {
  border: 2px solid;
  border-image: var(--outer-background) 1;
}

.project-info {
  margin-top: 12px;
  padding: 0 10px 15px 10px;
}

.project-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 5px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* TECH STACK */
.project-tech {
  font-size: 0.8rem;
  color: var(--accent-gradient-start);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.project-links {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-links {
  opacity: 1;
}

.project-links a {
  background: rgba(255, 255, 255, 0.8);
  padding: 8px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--accent-gradient-end);
  font-size: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, color 0.3s ease;
}

.project-links a:hover {
  background: var(--outer-background);
  color: var(--button-text);
}

/* 📱 Tablet Screens */
@media (max-width: 992px) {
  #projects {
    margin-top: 60px;
    padding: 0 40px;
  }

  #projects h2 {
    font-size: 2rem;
    margin-bottom: 25px;
  }

  #projects h2::after {
    width: 60px;
    height: 2.5px;
  }

  .projects-container {
    gap: 30px;
    justify-content: center;
  }

  .project-card {
    width: 260px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.3);
  }

  .project-card img {
    height: 180px;
    transition: border 0.3s ease;
  }

  .project-card:hover img {
    border: 2px solid;
    border-image: linear-gradient(135deg, #4b0082, #8a2be2) 1;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-desc {
    font-size: 0.85rem;
  }

  .project-tech {
    font-size: 0.75rem;
  }
}

/*  Mobile Screens */
@media (max-width: 600px) {
  #projects {
    margin-top: 120px;
    padding: 0 20px;
  }

  #projects h2 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
  }

  #projects h2::after {
    width: 50px;
    height: 2px;
  }

  .projects-container {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .project-card {
    width: 100%;
    max-width: 320px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.3);
  }

  .project-card img {
    height: 160px;
    transition: border 0.3s ease;
  }

  .project-card:hover img {
    border: 2px solid;
    border-image: var(--outer-background) 1;
  }

  .project-info {
    padding: 0 15px 15px 15px;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .project-tech {
    font-size: 0.75rem;
  }

  .project-links {
    opacity: 1;
    position: static;
    justify-content: center;
    margin-top: 10px;
    gap: 15px;
    transition: all 0.3s ease;
  }

  .project-links a {
    background: rgba(255, 255, 255, 0.8);
    padding: 8px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--accent-gradient-start);
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, color 0.3s ease;
  }

  .project-links a:hover {
    background: var(--outer-background);
    color: var(--button-text);
  }
}

/* EXPERIENCE */

#experiences h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  background: var(--outer-background);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  position: relative;
  margin-bottom: 30px;
}

#experiences h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--outer-background);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 800px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--outer-background);
  transform: translateX(-50%);
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 25px;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--outer-background);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

.timeline-content {
  background: var(--button-text);
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.1);
  transition: all 0.4s ease;
  position: relative;
  animation: slideIn 1s ease forwards;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 35px rgba(138, 43, 226, 0.3);
}

.timeline-content h3 {
  color: var(--accent-gradient-start);
  margin-bottom: 5px;
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gradient-end);
  display: block;
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base Responsive - Remove Timeline */
@media (max-width: 992px) {
  .timeline::before {
    display: none;
  }

  .timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding: 0;
    position: relative;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-content {
    width: 100%;
    background: var(--button-text);
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
  }

  .timeline-content h3 {
    color: var(--accent-gradient-start);
    margin-bottom: 5px;
    font-size: 1.2rem;
  }

  .timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-gradient-end);
    margin-bottom: 8px;
    display: block;
  }

  .timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
  }
}

/*  Mobile View */
@media (max-width: 600px) {
  #experiences {
    margin-top: 120px;
    padding: 0 20px 80px 20px;
  }

  .timeline {
    gap: 25px;
    padding: 0 10px 60px;
  }

  .timeline-content {
    padding: 15px 20px;
    border-radius: 12px;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
  }
}

/* CONTACT */

#contact {
  background-color: var(--inner-background);
  color: var(--text-color);
  padding: 80px 100px;
  border-radius: 25px;
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.15);
  animation: fadeIn 1.2s ease;
}

#contact h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  background: var(--outer-background);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  position: relative;
  margin-bottom: 30px;
}

#contact h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--outer-background);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.contact-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 60px;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--accent-gradient-start);
  margin-bottom: 15px;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--accent-gradient-end);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--accent-gradient-start);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: var(--outer-background);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.1);
  animation: slideUp 1.2s ease;
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  background-color: var(--inner-background);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.05);
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-gradient-end);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.contact-form button {
  background: var(--obsidian-purple);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--outer-background);
}

/* Message text */
.form-message {
  margin-top: 15px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--accent-gradient-start);
  font-weight: 600;
  display: none;
}

/*  Responsive Contact Section */
@media (max-width: 992px) {
  #contact {
    padding: 60px 50px;
    border-radius: 20px;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .contact-info,
  .contact-form {
    width: 100%;
    max-width: 600px;
  }

  .contact-info h3 {
    text-align: center;
  }

  .contact-info p,
  .contact-info li {
    text-align: center;
  }

  .contact-info ul {
    text-align: center;
  }
}

@media (max-width: 600px) {
  #contact {
    padding: 40px 20px;
    border-radius: 15px;
  }

  #contact h2 {
    font-size: 2rem;
    margin-bottom: 50px;
  }

  .contact-container {
    gap: 30px;
  }

  .contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .contact-info p {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .contact-form {
    padding: 20px;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.1);
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  .contact-form button {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SIDEBAR RESPONSIVE  */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: linear-gradient(to right, #5e00b8, #9c27b0);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .sidebar h2 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 8px;
  }

  .sidebar nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .sidebar nav ul li {
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 5px;
  }

  .sidebar nav ul li.active {
    background: #ffffff22;
    border: 1px solid #ffffff44;
  }

  .outer-wrapper {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  main,
  .content,
  .section {
    width: 90%;
    max-width: 700px;
    text-align: center;
  }

  .section {
    padding: 20px 15px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100%;
    height: 100%;
    position: absolute;
  }
}

/* Extra Small Phones */

@media (max-width: 480px) {
  .sidebar h2 {
    font-size: 1rem;
  }

  .sidebar nav ul {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar nav ul li {
    font-size: 0.8rem;
    padding: 5px 8px;
  }

  .outer-wrapper {
    margin-top: 10px;
  }

  /* Story section for extra small phones */
  #story {
    overflow-y: auto;
    overflow-x: hidden;
    align-items: flex-start;
    padding: 110px 15px 50px 15px;
    justify-content: flex-start;
    height: 100%;
    position: relative;
  }

  .story-wrapper {
    padding-top: 0;
    gap: 15px;
    width: 100%;
  }

  .story-left img {
    width: 200px;
    height: 180px;
    margin: 0 auto;
  }

  .story-right {
    width: 100%;
  }

  .story-right h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-top: 0;
  }

  .story-right p {
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.6;
  }

  .resume-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    margin-top: 10px;
    margin-bottom: 30px;
    display: inline-block;
    width: auto;
  }
}
